<?php



class PriceMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.PriceMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('price');
		$tMap->setPhpName('Price');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CONTENT_TYPE', 'ContentType', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('CAT_ID', 'CatId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PRICE', 'Price', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('VALID_FROM', 'ValidFrom', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('VALID_TO', 'ValidTo', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('REMARK', 'Remark', 'string', CreoleTypes::VARCHAR, false, 255);

	} 
} 